Random

Undocumented in source.

Constructors

this
this()
Undocumented in source.

Members

Static functions

initialize
void initialize()
Undocumented in source. Be warned that the author may not have intended to support it.
range
int range(int min, int max)
Undocumented in source. Be warned that the author may not have intended to support it.
rangef
float rangef(float min, float max)
Undocumented in source. Be warned that the author may not have intended to support it.
rangeu
uint rangeu(uint min, uint max)
Undocumented in source. Be warned that the author may not have intended to support it.
rangeub
ubyte rangeub(ubyte min, ubyte max)
Undocumented in source. Be warned that the author may not have intended to support it.
select
T select(T[] container, float[] weights)

This function gets a container and returns a random value from it. It may not receive any weight, so, it will be normally distributed (I expect) If it receives less weights than it has values, the last value will contain a weight equals to 1 - sum(weights) The weights must sum up to 1.0

Meta